<?php
namespace Admin\Controller;

use Think\Controller;

class BaseController extends Controller
{
	public function _initialize()
	{
		$user_id = session('user_id');
		$username = session('username');
		if(!isset($user_id) || !isset($username)){
			$this->redirect('public/login');
		}
	}
}